<template>
  <div>
    <el-button @click="add(1)">接口测试</el-button>
    <el-button @click="add(2)">About</el-button>
  </div>
</template>
<script setup>
import { useRouter } from "vue-router"
const router = useRouter()
const add = (e) => {
  if (e == 1) {
    router.push("/jiekouceshi")
  }
  if (e == 2) {
    router.push("/About")
  }
}
</script>
<style scoped lang="less"></style>
